package com.newgrand.annexserver.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

/**
 * storageService 工厂
 * storageStrategy 工厂
 */
@Configuration
public class StorageConfig {

    @Value("${spring.servlet.multipart.location}")
    private String tmpDir; //临时文件夹

    @Value("${thumb.width}")
    private int width; //缩略图宽

    @Value("${thumb.height}")
    private int height; //缩略图高


//      @Bean
//      public StorageServiceFactory storageServiceFactory() {
//            return StorageServiceFactory.getInstance();
//      }
//
//
//      @Bean
//      public StorageStrategyFactory storageStrategyFactory(StorageService storageService) {
//            StorageStrategyFactory instance = StorageStrategyFactory.getInstance();
//            instance.newStorageStrategy(storageService);
//            return instance;
//      }

}
